import request from "@/utils/request";

// 通过BusinessID拿shop
export function getShops(params){
    return request({
        url:'shop',
        params
    })
}
// 创建shop
export function createShop(data){
    return request({
        url:'shop/saveShop',
        method:'post',
        data
    })
}
// 获得所有的门店信息
export function getAllShops(){
    return request({
        url:'shop/all',
    })
}

// 通过id获得shop
export function getShopById(params){
    return request({
        url:'shop/getShop',
        params
    })
}